package com.example.lombokdemo.utils;

import cn.hutool.core.util.RandomUtil;

/**
 * 创建随机序号
 * @author 沈滨彬
 */
public class CreateRandom {
    public static void main(String[] args){
        String fourRandomLetters = RandomUtil.randomStringWithoutStr(4, "0123456789").toUpperCase();
        String unixTimestamp = Long.toString(System.currentTimeMillis() / 1000L);

        System.out.println(fourRandomLetters);
        System.out.println(unixTimestamp);
        System.out.println(unixTimestamp.length());
        System.out.println(fourRandomLetters+unixTimestamp);
    }
}
